package vip.bblog.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 权限（菜单）表
 * </p>
 *
 * @author yuyong
 * @since 2019-05-30
 */
public class SystemMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long parentId;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 父类菜单的ico图标
     */
    private String ico;

    /**
     * 需要跳转的url
     */
    private String href;

    /**
     * 菜单类型，1：菜单是个url，2:是一个按钮
     */
    private Integer type;

    /**
     * 菜单权限的唯一标识
     */
    private String permission;

    /**
     * 菜单的排序
     */
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }
    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "SystemMenu{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", name=" + name +
        ", ico=" + ico +
        ", href=" + href +
        ", type=" + type +
        ", permission=" + permission +
        ", sort=" + sort +
        "}";
    }
}
